package com.atguigu.dao;

import com.atguigu.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author Eric
 * @Create 2020-09-18  18:35
 * @Version project-workspace-0912
 **/
public interface OrdersettingDao {

    //查询预约日期，使用当前时间作为条件查询数量
    long findCountByOrderDate(Date orderDate);

    //更新数量
    void editNumberByOrderDate(OrderSetting orderSetting);

    //添加
    void add(OrderSetting orderSetting);

    //根据页面对应的月份查询预约设置信息
    List<OrderSetting> getOrderSettingByMonth(Map<String, Object> map);

    //根据预约日期查询预约设置信息
    OrderSetting findByOrderDate(Date date);
    //更新已预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
